import axios from '../utils/axios';
const baseURL = '/api/article/';

//获取文章
export const getArticleApi = async (params: object) => {
  return axios.post(`${baseURL}getArticle`, params);
}

//获取文章详情
export const getArticleByIdApi = async (params: object) => {
  return axios.post(`${baseURL}getArticleById`, params);
}

//获取文章数量
export const getArticleCountApi = async (params: object) => {
  return axios.post(`${baseURL}getArticleCount`, params);
}